package anli;

import java.util.Arrays;

public class Practice {
    // 主动的去模范，并写出不同的例子。

    public static void main(String[] args) {
        //
        char[] res = getCharArr(5);
        System.out.println(Boolean(true));
        System.out.println(arr(9));
        System.out.println(b((byte) 8));
        System.out.println(c((short) 99));
        System.out.println(d(888));
        System.out.println(l(1234l));
        System.out.println(f(2345f));
        System.out.println(d(234.5));

        int[] arr={1,2,4,5};
        System.out.println(Arrays.toString(shu(arr)));

    }

    public static byte b(byte by){
        return 8;
    }

    public static short c(short sh){
        return 99;
    }

    public static int d(int in){
        return 888;
    }

    public static Integer arr(int nu){
        return 9;
    }

    public static long l(long lo){
        return 1234l;
    }

    public static float f(float fl){
        return 2345f;
    }

    public static double d(double ddd){
        return 243.5;
    }

    public static char[] getCharArr(int length) {
        return new char[length];
    }

    public static boolean Boolean(Boolean num){
        return true;
    }

    public static int[] shu(int[] arr){
        int[] arr1 = arr;
        for (int i = 0; i <arr1.length ; i++) {
            arr1[0]=666;
        }
        return arr;
    }


}
